String SendHTML(int timerMaxFatall,int literMax, int literImpuls, bool choceSensor) //Добавил choceSensor
{
  String ptr = "<!DOCTYPE html>\n";
  ptr +="<html lang=\"ru\">\n";
  ptr +="<head>\n";
  ptr +="<meta charset=\"UTF-8\">\n";
  ptr +="<title>Water Control</title>\n";
  ptr +="</head>\n";
  ptr +="<body>\n";
  ptr +="<div class=\"main_container\">\n";
  ptr +="<div class=\"content_container\">\n";
  ptr +="<div class=\"correct_container\">\n";
  ptr +="<h1>Water Control v.1.0</h1>\n";
  ptr +="<div class=\"item\">\n";
  ptr +="<form method=\"post\" action=\"/SettingChoceSensor\">\n";
  ptr +="<div class=\"item\">Тип датчика:</div>\n";
  ptr +="<label>\n";
  ptr +="<select onChange=\"this.form.submit();\" class=\"select\" name=\"choceSensor\" >\n";
  ptr +="<option ";
  if (choceSensor == true)
  {
    ptr +="selected=\"selected\"";
  }
  ptr +=" value=\"true\">Импульсный датчик</option>\n";
  ptr +="<option ";
  if (choceSensor == false)
  {
    ptr +="selected=\"selected\"";
  }
  ptr +=" value=\"false\">Потоковый датчик</option>\n";
  ptr +="</select>\n";
  ptr +="</label></div>\n";
  ptr +="</form>\n";
  ptr +="<form method=\"post\" action=\"/SettingWaterTime\">\n";
  ptr +="<div class=\"item\">Время потока воды до отключения (в минутах):</div>\n";
  ptr +="<div class=\"item\">\n";
  ptr +="<label>\n";
  ptr +="<input name=\"timerMaxFatall\" type=\"number\" placeholder=\"Минуты\"";
  ptr +="value=";
  ptr +=timerMaxFatall;
  ptr +=">\n";
  ptr +="</label>\n";
  ptr +="</div>\n";
  if (choceSensor == true)
  {
    ptr +="<div class=\"item\">Количество литров за импульс:</div>\n";
    ptr +="<div class=\"item\">\n";
    ptr +="<label>\n";
    ptr +="<input name=\"literImpuls\" type=\"number\" placeholder=\"Литров за импульс\"";
    ptr +="value=";
    ptr +=literImpuls;
    ptr +=">\n";
    ptr +="</label></div>\n";
    ptr +="<div class=\"item\">Количество литров:</div>\n";
    ptr +="<div class=\"item\">\n";
    ptr +="<label>\n";
    ptr +="<input name=\"literMax\" type=\"number\" placeholder=\"Количество литров\"";
    ptr +="value=";
    ptr +=literMax;
    ptr +=">\n";
    ptr +="</label></div>\n";
    ptr +="</div>\n";
  }
  ptr +="</div>\n";
  ptr +="</div>\n";
  ptr +="<div> <button name=\"save\" type=\"submit\" value=\"save\">Сохранить</button></div>\n";
  ptr +="</form>\n";
  ptr +="</body>\n";
  ptr +="<style>\n";
  ptr +="body { h1 { font-family: Consolas; font-size: 40px; width: auto; height: auto; margin: auto; } .main_container{ width: 100%; height: 100%; display: block; margin: auto; } .content_container{ width: auto; height: auto; display: flex; margin: auto; padding: 15px; border-radius: 12px; background-color: rgb(136, 163, 214); box-shadow: 0px 0px 40px grey; outline: 3px solid white; } .correct_container{ width: auto; height: auto; display: block; margin: auto; background-color: white; border-radius: 12px; padding: 15px; } button { font-family: Consolas; font-size: 48px; width: 100%; margin-top: 10px; padding: 15px 10px; border-width: 0px; border-style: solid; border-radius: 12px; color: white; background-color: black; cursor: pointer; transition: background-color 2s ease; transition: color 1s ease;} button:hover {background-color: rgb(170, 223, 109); color: black;} input{ font-family: Consolas; font-size: 35px; text-align: center; width: 100%; height: 80px; border: 0px solid #ccc; background-color: #88a3d6; border-radius: 5px; appearance: none; -webkit-appearance: none; } select { font-family: Consolas; font-size: 35px; text-align: center; width: 100%; height: 80px; padding: 5px; border: 0px solid #ccc; border-radius: 0px; background-color: #88a3d6; border-radius: 5px; appearance: none; -webkit-appearance: none; } .item  { font-family: Consolas; font-size: 32px; text-align:justify, center; padding: 3px width:100%;}\n";
  ptr +="</style>\n";
  ptr +="</html>\n";
  return ptr;
}